import { http } from "../utils/index";
import type { TokenType } from "./type";

// 1、登录
export const reqLogin = (code: string) => {
  return http.get<TokenType>(`/api/ucenter/webChat/callback`, {
    code,
  });
};

// 2、获取收藏列表 /api/edu/courseCollect/auth/{page}/{limit}
export const reqGetCollectList = (page:number,limit:number) => {
  return http.get(`/api/edu/courseCollect/auth/${page}/${limit}`)
}
